package com.example.comment.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotBlank;


/**
 * @author lenovo
 */
@Data
@ApiModel
@Document
public class Review {
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(name = "username",value = "用户名")
    private String username;
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(name = "password",value = "密码")
    private String password;
    @ApiModelProperty(name = "number",value = "个数")
    private Integer number;
    @ApiModelProperty(name = "sex",value = "性别")
    private String sex;
}
